package com.ruoyi.residents.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.pojo.TbRoom;
import com.ruoyi.residents.mapper.TbRoomMapper;
import com.ruoyi.residents.service.TbRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbRoomServiceImpl extends ServiceImpl<TbRoomMapper, TbRoom> implements TbRoomService {
    @Autowired
    TbRoomMapper tbRoomMapper;
    @Override
    public TbRoom fingdById(Integer roomId) {
        return tbRoomMapper.fingById(roomId);
    }

    @Override
    public List<TbRoom> findAll() {
        return tbRoomMapper.findAll();
    }
}
